﻿using System;

namespace HYFamilyLibDataManager
{
	public class DbSubject : Parent
	{
		public DbSubject(string name, Guid id)
		{
			this.mName = name;
			this.mGuid = id;
		}

		public override string ToString()
		{
			return this.mName;
		}

		public string GetNameAndCount(CheckType checkType)
		{
			long num = (long)this.mDatabase.FamilyTable.Count(checkType);
			return this.mName + "(" + num.ToString() + ")";
		}
	}
}
